package com.ys.enume.storage;

//线上组装报错单
public class TccOnlineAssembleErrorEnum {
	
	/*
	 * 处理状态
	 */
	public enum HandleStatus {
		DID_NOT_DO("待处理", 0),
		NOT_DO("不处理", 1),
		REPAIR_SEND("发补货", 2),
		PURCHASE_PAY("采购赔偿", 3),
		PURCHASE_BACK("采购退款", 4),
		NORMAL("正常范围", 5),

		;
		public String name;
		public Integer value;

		private HandleStatus(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (HandleStatus e : HandleStatus.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
